
import time

class UpdateTracker:
    def __init__(self,starttime):
        self.starttime=starttime
        self.remained_op_num = 0

class UpdateWrapper:
    def __init__(self, update):
        assert isinstance(update,dict)
        self.update = update
        self.tracker = UpdateTracker(time.time())